TARGETS = get_peers
CFLAGS=-g -Wall -O0 -Werror -Wshadow -Wpointer-arith -Wwrite-strings

all: $(TARGETS)

get_peers: get_peers.o bencode.o utils.o sha1.o
	$(CC) $(CFLAGS) $^ -o $@

bencode.o: bencode.c bencode.h

utils.o: utils.c utils.h

sha1.o: sha1.c sha1.h

clean: 
	rm -f *.o get_peers

depend:
	makdepend *.c
